package com.sy.mapper;

import com.sy.dto.OrdersDto;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * description: OrdersMapper <br>
 * date: 2022/6/24 1:40 AM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */
public interface OrdersMapper {
    /**
     * 添加订单
     * @param subjectId
     * @param memberId
     * @param dealTime
     * @return
     */
    Boolean addOrder(@Param("subjectId") Integer subjectId, @Param("memberId") Integer memberId, @Param("dealTime")String dealTime);

    /**
     * 根据用户id查询订单
     * @param memberId
     * @return
     */
    List<OrdersDto> selectMemberOrdersById(Integer memberId);
}
